package edu.java.lectures.lec05.encapsulation;

public class A {

    // a must be always positive
    private int a = 3;

    void setA(int a) {
	if (a <= 0) {
	    throw new IllegalArgumentException(
		    "Invalid parameter - a: negative value not allowed.");
	}
	this.a = a;
    }

    private int getA() {
	return a;
	// return getDataBase().getTableA().getColumnA().getLine(1);
    }
}
